Published on:
2024-04-28
#ChaosEngineering #SoftwareReliability #WebDevelopment #Django #vuejs #agile-development #scrum-methodology #resilience
Table of Contents

| Endpoint | Method | Description |
|---|---|---|
| /api/register | POST | Sends client specific data for the creation of a new user. Invokes other back-end functions such as hashing the password, sending a verification Email. |
| /api/login | POST | Sends client specific data for the login of an existing user. |
| /api/verifyEmail/<uidb64>/<token> | GET | Verifies the email of an existing user. |
| /api/get_notifications | GET | Fetches the notifications relevant to the currently logged in user. |
| /api/mark_notification_as_viewed | GET | Marks a notification as viewed removing it from the list of notifications. |
| /api/get_user_details | GET | Fetches the details of the currently logged in user. |
| /api/get_profile_pic | GET | Fetches the profile picture of the currently logged in user. |
| /api/change_password | POST | Changes the password of the currently logged in user. |
| /api/change_profile_pic | POST | Changes the profile picture of the currently logged in user. |
| /api/edit_session_timer | POST | Changes the session timer of the currently logged in user. |
| /api/logout | POST | Logs out the currently logged in user. |
PS: Browsers don’t seem to know that the frontend and backend are on the same domain (which is understandable since they are different applications), so you will need to add the domain of the frontend to the CORS_Allowed_Origins in the Django RESTful API settings.

| Endpoint | Method | Description |
|---|---|---|
| /api/add_secret | POST | Receives two parameters (Name & Content) to create a new instance of the class secret. |
| /api/list_secrets | GET | Fetches all the secrets owned by the current user. |
| /api/share_secret | POST | Creates a share object for a specific user with optional expiration parameters. |
| /api/revoke_secret | POST | Deletes a share object for a specific user. |
| /api/display_secret | GET | Requests the plain content of a secret, invoking functionalities such as Decryption via RSA Keys and Decryption via AES Keys. |
| /api/delete_secret | POST | Deletes a secret along with all the shares that have been created from it (revoking all access to it). |
| /api/list_shared_secrets | GET | Fetches all the secrets shared with the current user. |
| /api/display_shared_secret | GET | Requests the plain content of a secret, ... |
| /api/remove_access_to_secret | POST | Deletes the share object that provides the current user with access to the secret. |
| /api/get_user_eventlogs | GET | Fetches all the event logs/activities that have been done on secrets relevant to the current user. |